package com.example.demo.mapper;

import com.example.demo.domain.Staff;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StaffMapper {
    //查询所有员工
    @Select("select * from staff")
    List<Staff> findAllStaff();

    //删除员工
    @Delete("delete from staff where id=#{id}")
    int deleteStaff(Integer id);
}
